<?php

	class Peta extends arfaController
	{
		public function __construct()
		{
			parent::__construct();
			$this->load->model("titik_jalan_model");
			$this->load->model("ruas_jalan_model");
		}
		
		public function __index()
		{
			$data["titik_jalan"]	= $this->titik_jalan_model->get_titik();
			$data["content"]		= $this->load->view("peta_jalan",$data,true);
			$this->load->view("main_peta",$data);
		}
		public function index(){
			// $data["titik_jalan"]	= $this->titik_jalan_model->get_titik();
			$join	= array(
				array("table"=>"ruas_jalan","join_key"=>"ID_PERIODE","join_table"=>"master_periode")
			);
			$data["ruas_jalan"]		= $this->ruas_jalan_model->get_join_by($join,array("STATUS_PERIODE"=>1));
			$data["titik_jalan"]	= $this->titik_jalan_model->get_titik();
			$data["content"]		= $this->load->view("peta_jalan",$data,true);
			$this->load->view("main_peta",$data);
		}
	}